<div class="row">
    <div class="col-lg-4">
        <form class="wastebook" action="" method="post" novalidate="novalidate">

            <input hidden="hidden" id="star" value="1">

            <h3 class="form-title">流水帐添加</h3>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        店名
                    </div>
                    <select class="form-control" id="addr" name="addr">
                        <?php
                        for ($i = 1; $data ['sname'][$i] != ""; $i++){
                            echo "<option>".$data ['sname'][$i]['name']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        客户类型
                    </div>
                    <select class="form-control" id="user">
                        <option value="oc">普通客户</option>
                        <option value="ec">企业客户</option>
                        <option value="vip">会员客户</option>
                    </select>
                </div>
            </div>

            <div class="form-group" hidden="hidden" id="vip-hidden">
                <div class="input-group">
                    <div class="input-group-addon">
                        会员号
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入会员号" id="vip" name=""/>
                </div>
            </div>


            <div class="form-group" hidden="hidden" id="vip-rewards">
                <div class="input-group">
                    <div class="input-group-addon">
                        使用积分
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入消耗的积分" name="del_rewards"/>
                </div>
            </div>

            <div class="form-group" hidden="hidden" id="ec-hidden">
                <div class="input-group">
                    <div class="input-group-addon">
                        企业名字
                    </div>
                    <select class="form-control" id="ec" name="">
                        <?php
                        for ($i = 0; $data ['gname'][$i] != ""; $i++){
                            echo "<option>".$data ['gname'][$i]['name']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <div class="form-group" id="mprice-hidden">
                <div class="input-group">
                    <div class="input-group-addon">
                        付款方式
                    </div>
                    <select class="form-control" name="mprice">
                        <option>现金</option>
                        <option>未付</option>
                        <option>支付宝</option>
                        <option>微信</option>
                        <option>QQ钱包</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        商品类型
                    </div>
                    <select class="form-control" name="item" placeholder="商品类型" id="i_type">
                        <?php
                        for ($i = 0; $data ['shopsname'][$i] != ""; $i++){
                            echo "<option>".$data ['shopsname'][$i]['type']."</option>";
                        }
                        ?>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        商品名称
                    </div>
                    <select class="form-control" name="item" placeholder="商品名称" id="i_name">
                        <option>请选择商品类型</option>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        数量
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入商品数量" value="1" name="num" id="num"/>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        价格
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="请输入商品价格" name="price" id="price"/>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        备注
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="备注" name="text" id="text"/>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        销售员
                    </div>
                    <select class="form-control" name="name" placeholder="销售员" id="name">
                        <?php
                        for ($i = 0; $data ['user'][$i] != ""; $i++){
                            $selected = $data['user'][$i]['uname'] == $_SESSION['uname'] ? 'selected="selected"' : "";?>
                            <option <?php echo $selected; ?> ><?php echo $data ['user'][$i]['uname']; ?></option>
                        <?php } ?>
                    </select>
                </div>
            </div>

            <div class="form-group">
                <div class="input-group">
                    <div class="input-group-addon">
                        时间
                    </div>
                    <input class="form-control" type="text" autocomplete="off" placeholder="时间" id="time" name="time" value="<?php echo date("Y-m-d H:i:s");?>"/>
                </div>
            </div>

            <div class="form-group">
                <button type="reset" class="btn btn-danger">清除</button>
                <button type="submit" class="btn btn-success"><i class="fa fa-plus"></i> 提交</button>
            </div>

            <div class="pure-form-message" style="color:#b94a48;margin-top: 10px;"><?php echo isset($data ['add_w_e']) ? $data ['add_w_e'] :'' ?></div>
        </form>
    </div>

    <div class="col-lg-6">
        <h1>注意事项：</h1>
        <h3>1、客户有会员号,必须填写！</h3>
        <h3>2、企业客户必须确认付款方式是未付还是现金</h3>
        <h3>3、销售员默认为自己，帮别人录入请选择他的名字</h3>
        <h3>4、提交后只需要点击一次，请勿重复点击</h3>
        <h3>5、出现录错单，重复录单，请在流水账进行退货</h3>
        <h3>6、出现入账后退货的情况，请立即联系财务进行处理，不得随意退货</h3>
        <h3>7、任何单据有特殊情况的，必须备注里写清楚</h3>
        <h3><b style="color:red;">8、长城宽带拿货请备注好拿货人姓名，备注不得留空！</b></h3>
        <p>-----------------------------------------------------------------------------------------</p>
        <h5>选择商品类型以后才能选择商品，系统自动筛选，库存为0的商品不会出现</h5>
    </div>
</div>